<?php
namespace app\sysadmin\controller;
use think\Db;
use Wy\Attr;
class Contentajax extends Content{
	public function __construct(){
		parent::__construct();
	}
	public function ajax_select_config(){
		if($this->request->isAjax() != true){
			$this->error('404');
		}
		// $this->error('404');
		$_input_data = input();
		$_attr = new Attr();
		$_data = $_attr->attr_lists($_input_data['attr_type'],$_input_data['val']);
		$this->success('success','',$_data);
	}
	public function ajax_config_area(){
		if($this->request->isAjax() != true){
			$this->error('404');
		}
		// $this->error('404');
		$_input_data = input();
		if(!isset($_input_data['area_id'])){
			$this->error('404');
		}
		$_attr = new Attr();
		
		$_data = $_attr->_area_lists($_input_data['area_id']);
		$this->success('success','',$_data);
	}
}
?>